package com.jzo2o.customer.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.customer.model.domain.BankAccount;
import com.jzo2o.customer.model.dto.request.BankAccountUpsertReqDTO;
import com.jzo2o.customer.service.BankAccountService;
import com.jzo2o.customer.mapper.BankAccountMapper;
import org.springframework.stereotype.Service;

/**
* @author 11394
* @description 针对表【bank_account(银行账户)】的数据库操作Service实现
* @createDate 2024-08-19 21:13:22
*/
@Service
public class BankAccountServiceImpl extends ServiceImpl<BankAccountMapper, BankAccount>
    implements BankAccountService{

    @Override
    public void updateorsave(BankAccountUpsertReqDTO bankAccountService) {

        //把这个Dto对象转换为pojo类型
        BankAccount bankAccount = BeanUtil.toBean(bankAccountService, BankAccount.class);

        this.saveOrUpdate(bankAccount);
    }
}




